package com.carlyang.jspservlet.tag;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;

public class HelloWorldTag extends TagSupport{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Override
	public int doStartTag() throws JspException {
		JspWriter out = this.pageContext.getOut();
		try {
			out.println("自定义标签！");
		} catch (Exception e) {
			// TODO: handle exception
		}
		return TagSupport.SKIP_BODY;//直接跳出结束标签
	}
	
}
